import argparse

parser = argparse.ArgumentParser('FeatherScript')
parser.add_argument('file_path', nargs='?')
args = parser.parse_args()

from lang import FeatherScriptProcessor

processor = FeatherScriptProcessor()

#region init
with open('init.feather') as f:
    init_script = f.read()
    f.close()
processor.interpret_code(init_script)
# print(processor.data)
#endregion

if args.file_path:
    with open(args.file_path) as f:
        script = f.read()
        f.close()
    processor.interpret_code(script)
